package com.session01;

public class Cat extends Animal implements IPlayable {
    private String name;        //名字
    private String masterPhone; //主人电话

    public Cat(String name, ColorEnum color, String kind, Boolean hair, Boolean jueyu, GenderEnum gender, String masterPhone) {
        super(color, kind, hair, jueyu, gender);
        this.name = name;
        this.masterPhone = masterPhone;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getMasterPhone() {
        return masterPhone;
    }

    public void setMasterPhone(String masterPhone) {
        this.masterPhone = masterPhone;
    }


    @Override
    public void eat(String food) {
        System.out.println("小猫咪都喜欢吃" + food);
    }

    @Override
    public void play() {
        System.out.println("老板带我去玩球");
    }
}

